{literal}
<script type="text/javascript">
	function clearForm(obj) {
		$(obj).find('input:[type=text]').val('');
		$(obj).find('select').val(0);
	}
</script>
{/literal}
<h1>Płatności</h1>
{if isset($filter)}{assign var=class value=colapse}{else}{assign var=class value=expand}{/if}

{mainoptions title="Lista"}
		<table cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td>{tables label="ID" tid=payment_table_main o=id}</td>
				<td>{tables label="Data" tid=payment_table_main o=name}</td>
				<td>{tables label="Kwota" tid=payment_table_main o=serial}</td>
                                
				<th class="noSort"></th>

			</tr>
			{foreach from=$list item=obj name=payment_table_main}
			<tr>
				<td>{$obj->getId()}</td>
				<td>{$obj->getDate()}</td>
				<td>{$obj->getBalance()} {$obj->getCurrency()}</td>
                                
				<td>
					<a href="{url payment=invoice id=$obj->getId()}" class="read"> faktura</a>
					
					
				</td>
			</tr>
			{/foreach}
			<tr class="selAllRow">
				<td colspan="2">
					<div class="pager">
						{tables type='pagination' tid='payment_table_main' all_count=$c}
						{tables type='on_page' tid='payment_table_main'}
					</div>
				</td>
			</tr>
		</table>
{/mainoptions}